package top.zywork.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * GoodsCategoryBrandDAO数据访问接口<br/>
 *
 * 创建于2019-08-22<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Mapper
public interface GoodsCategoryBrandDAO extends BaseDAO {

    @Override
    List<Object> listAllByCondition(@Param("query") Object queryObj);

    @Override
    List<Object> listPageByCondition(@Param("query") Object queryObj);

    @Override
    Long countByCondition(@Param("query") Object queryObj);

    /**
     * 根据类目id删除品牌信息
     * @param categoryId
     * @param brandIds
     * @return
     */
    int removeBrand(@Param("categoryId") Long categoryId, @Param("brandIds") List<Long> brandIds);
}
